// import https from '@/api/http'
import https5g from '@/api/http5g'
// var http=https.http
var http5g=https5g.http
// const request = '/example-api'
const request = ''

// 三级省市区
export function area(params){
    //http://www.wanlshop.test/api/wanlshop/common/area
    return http5g.post(`${request}/api/wanlshop/common/area`,params)
}

//发送验证码
export function smsSend(params){
    //http://www.online5g.test/api/sms/send
    return http5g.post(`${request}/api/sms/send`,params)
}


// 注册
export function register(params){
    //http://www.online5g.test/api/user/register
    return http5g.post(`${request}/api/user/register`,params)
}
// 登录
export function login(params){
    //http://www.online5g.test/api/user/login
    return http5g.post(`${request}/api/user/login`,params)
}
// 忘记密码
export function resetpwd(params){
    //http://www.online5g.test/api/user/resetpwd
    return http5g.post(`${request}/api/user/resetpwd`,params)
}
// 提交经纬度获取当前位置
export function takePosition(params){
    //http://www.online5g.test/api/user/takePosition
    return http5g.post(`${request}/api/user/takePosition`,params)
}
// 获取店铺列表
export function shopList(params){
    //http://www.online5g.test/api/wanlshop/offline/shop/shopList
    return http5g.post(`${request}/api/wanlshop/offline/shop/shopList`,params)
}
// 我的佣金
export function getMyBrokerage(params){
    //http://www.online5g.test/api/wanlshop.address/getaddress
    return http5g.post(`${request}/api/wanlshop/store/getMyBrokerage`,params)
}
// 用户分享码
export function getUserShareCode(params){
    //http://www.online5g.test/api/wanlshop.address/getaddress
    return http5g.post(`${request}/api/wanlshop/store/getUserShareCode`,params)
}
// 佣金明细
export function getBrokerageList(params){
    //http://www.online5g.test/api/wanlshop.address/getaddress
    return http5g.post(`${request}/api/wanlshop/store/getBrokerageList`,params)
}
// 用户提现
export function withdraw(params){
    //http://www.online5g.test/api/wanlshop.address/getaddress
    return http5g.post(`${request}/api/wanlshop/store/withdraw`,params)
}
// 提现记录
export function withdrawLog(params){
    //http://www.online5g.test/api/wanlshop.address/getaddress
    return http5g.post(`${request}/api/wanlshop/store/withdrawLog`,params)
}
// 提现详情
export function getWithdrawData(params){
    //http://www.online5g.test/api/wanlshop.address/getaddress
    return http5g.post(`${request}/api/wanlshop/store/getWithdrawData`,params)
}
// 提现手机验证码
export function getWithdrawSend(params){
    //http://www.online5g.test/api/wanlshop.address/getaddress
    return http5g.post(`${request}/api/wanlshop/store/send`,params)
}
// 分享记录
export function getMyShareList(params){
    //http://www.online5g.test/api/wanlshop.address/getaddress
    return http5g.post(`${request}/api/wanlshop/store/getMyShareList`,params)
}
// 分类列表
export function cateList(params){
    //http://www.online5g.test/api/wanlshop/offline/shop/cateList
    return http5g.post(`${request}/api/wanlshop/offline/shop/cateList`,params)
}

// 商品列表
export function goodsList(params){
    //http://www.online5g.test/api/wanlshop/offline/shop/goodsList
    return http5g.post(`${request}/api/wanlshop/offline/shop/goodsList`,params)
}
// 商品详情
export function goodsDetail(params){
    //http://www.online5g.test/api/wanlshop/offline/shop/goodsDetail
    return http5g.post(`${request}/api/wanlshop/offline/shop/goodsDetail`,params)
}


// 获取地址列表
export function getaddress(params){
    //http://www.online5g.test/api/wanlshop.address/getaddress
    return http5g.post(`${request}/api/wanlshop.address/getaddress`,params)
}
// 设置当前地址为默认地址
export function addressDefault(params){
	//http://www.online5g.test/api/wanlshop/offline/shop/addressDefault
    return http5g.post(`${request}/api/wanlshop/offline/shop/addressDefault`,params)
}
// 修改/新增地址
export function address(params){
    //http://www.online5g.test/api/wanlshop/offline/shop/address
    return http5g.post(`${request}/api/wanlshop/offline/shop/address`,params)
}
// 地址详情
export function addressDetail(params){
    //http://www.online5g.test/api/wanlshop/offline/shop/addressDetail
    return http5g.post(`${request}/api/wanlshop/offline/shop/addressDetail`,params)
}
// 删除地址
export function deladdress(params){
    //http://www.online5g.test/api/wanlshop.address/deladdress
    return http5g.post(`${request}/api/wanlshop.address/deladdress`,params)
}


//http5g是https://online5g.bigchun.com/index.php 域名接口
//http是https://zhongjunf.bigchun.com域名接口

// 获取门店列表online
export function getshoponline(params){
    return http5g.post(`${request}/api/wanlshop/store/listall`,params)
}

// 保存合作申请信息
export function saveCoperInfo(params){
    return http5g.post(`${request}/api/wanlshop/store/saveCooperationApplyInfo`,params)
}

//获取合作申请列表
export function getCooperationApplyList(params){
    return http5g.post(`${request}/api/wanlshop/store/getCooperationApplyList`,params)
}

// 负责人同意/驳回申请
export function saveAgreeRefuseApply(params){
    return http5g.post(`${request}/api/wanlshop/store/saveAgreeRefuseApply`,params)
}

// 获取项目商品列表
export function getProjectGoodsList(params){
    return http5g.post(`${request}/api/wanlshop/store/getProjectGoodsList`,params)
}

// 获取门店数据会员销售列表
export function getStoreMemberSaleList(params){
    return http5g.post(`${request}/api/wanlshop/store/getStoreMemberSaleList`,params)
}
// 获取门店数据会员销售详情列表
export function getStoreMemberSaleListDetail(params){
    return http5g.post(`${request}/api/wanlshop/store/getStoreMemberSaleListDetail`,params)
}

// 确认下单
export function getOrderGoodsList(params){
	//http://www.online5g.test/api/wanlshop/offline/shop/getOrderGoodsList
    return http5g.post(`${request}/api/wanlshop/offline/shop/getOrderGoodsList`,params)
}
// 提交支付
export function payment(params){
	//http://www.online5g.test/api/wanlshop/offline/shop/payment
    return http5g.post(`${request}/api/wanlshop/offline/shop/payment`,params)
}
// 订单列表
export function getOrderList(params){
	//http://www.online5g.test/api/wanlshop/offline/shop/getOrderList
    return http5g.post(`${request}/api/wanlshop/offline/shop/getOrderList`,params)
}
// 待支付订单直接支付
export function getPay(params){
	//hhttp://www.online5g.test/api/wanlshop/offline/shop/getPay
    return http5g.post(`${request}/api/wanlshop/offline/shop/getPay`,params)
}
// 订单详情
export function getOrderInfo(params){
	//http://www.online5g.test/api/wanlshop/offline/shop/getOrderInfo
    return http5g.post(`${request}/api/wanlshop/offline/shop/getOrderInfo`,params)
}
// 确认收货
export function confirmOrder(params){
	//http://www.online5g.test/api/wanlshop/offline/shop/confirmOrder
    return http5g.post(`${request}/api/wanlshop/offline/shop/confirmOrder`,params)
}
// 取消订单
export function cancelOrder(params){
	//http://www.online5g.test/api/wanlshop/offline/shop/cancelOrder
    return http5g.post(`${request}/api/wanlshop/offline/shop/cancelOrder`,params)
}
// 删除订单
export function delOrder(params){
	//http://www.online5g.test/api/wanlshop/offline/shop/delOrder
    return http5g.post(`${request}/api/wanlshop/offline/shop/delOrder`,params)
}



//2.0接口
// 卡密激活
export function activation(params){
    return http5g.post(`${request}/api/card_code/activation`,params)
}
// 卡密激活记录
export function mycode(params){
    return http5g.post(`${request}/api/card_code/mycode`,params)
}
// 转赠记录和接受记录
export function cardlog(params){
    return http5g.post(`${request}/api/card_code/cardlog`,params)
}

// 转赠领取接口
export function subgift(params){
    return http5g.post(`${request}/api/card_code/subgift`,params)
}

// 1获取店铺详情
export function shopDetail(params){
	//https://online5g.bigchun.com/api/wanlshop/offline/shop/shopDetail
    return http5g.post(`${request}/api/wanlshop/offline/shop/shopDetail`,params)
}

// 1.2获取设备与服务信息
export function shopGoodsList(params){
	//https://online5g.bigchun.com/api/wanlshop/offline/shop/shopGoodsList
    return http5g.post(`${request}/api/wanlshop/offline/shop/shopGoodsList`,params)
}

// 2获取设备与服务信息
export function getDeviceServiceInfo(params){
	//https://online5g.bigchun.com/api/wanlshop/offline/device/getDeviceServiceInfo
    return http5g.post(`${request}/api/wanlshop/offline/device/getDeviceServiceInfo`,params)
}

// 3获取合伙人审核列表
export function getCooperationListByStatus(params){
    return http5g.post(`${request}/api/wanlshop/store/getCooperationListByStatus`,params)
}

// 4对驳回申请进行撤消或重新申请
export function cancelReApply(params){
    return http5g.post(`${request}/api/wanlshop/store/cancelReApply`,params)
}

// 6获取订单已服务未服务列表
export function getServiceOrderInfo(params){
	//https://online5g.bigchun.com/api/wanlshop/offline/device/getServiceOrderInfo
    return http5g.post(`${request}/api/wanlshop/offline/device/getServiceOrderInfo`,params)
}
// 7获取服务记录
export function getServiceOrderRecord(params){
	//https://online5g.bigchun.com/api/wanlshop/offline/device/getServiceOrderRecord
    return http5g.post(`${request}/api/wanlshop/offline/device/getServiceOrderRecord`,params)
}
// 8获取未服务商品订单信息
export function getUnservedGoodOrderInfo(params){
	//https://online5g.bigchun.com/api/wanlshop/offline/device/getUnservedGoodOrderInfo
    return http5g.post(`${request}/api/wanlshop/offline/device/getUnservedGoodOrderInfo`,params)
}

// 9获取我的核销订单(未核销/已核销)
export function getMyWriteOffOrderInfo(params){
	//https://online5g.bigchun.com/api/wanlshop/offline/device/getMyWriteOffOrderInfo
    return http5g.post(`${request}/api/wanlshop/offline/device/getMyWriteOffOrderInfo`,params)
}

// 10确认核销订单
export function SaveWriteOffOrder(params){
	//https://online5g.bigchun.com/api/wanlshop/offline/device/SaveWriteOffOrder
    return http5g.post(`${request}/api/wanlshop/offline/device/SaveWriteOffOrder`,params)
}